<template>
  <div style="padding: 10px;">
    <el-card>
      <el-button @click="DailyUnlockExport" type="success">导出</el-button>
      {{ mo }}
    </el-card>
  </div>
</template>
<script>
import { DailyUnlockExportApi } from "@/api/index.js";
export default {
  data() {
    return {
      mo: "",
    };
  },
  methods: {
    async DailyUnlockExport() {
      this.$confirm(
        `${this.$t("是否确认导出每日解锁数据?")}`,
        `${this.$t("警告")}`,
        {
          confirmButtonText: `${this.$t("确定")}`,
          cancelButtonText: `${this.$t("取消")}`,
          type: "warning",
        }
      ).then(async () => {
        console.log(1111111111111);
        const res = await DailyUnlockExportApi();
        console.log(res);
        this.mo = res;
        // this.exportLoading = true;
        // return exportUser(queryParams);
      });
      // .then((response) => {
      //   this.download(response.msg);
      //   this.exportLoading = false;
      // })
      // .catch(() => {});
    },
  },
};
</script>
<style lang='' scoped>
</style>